<include file="Public/head"/>
<style>
    .xuanze_tit{width:976px;margin:0 auto;background: #c1c1c1 none repeat scroll 0 0;color: #303030;  display: block;  font-size: 14px;  height: 30px;  line-height: 30px;  padding-left: 15px;  text-align: left;}
    .xuanzhe {margin-top: 0px;border-style:none;}
    .xuanzhe ul li{margin-bottom: 5px;}
    .xuanzhe ul li span {text-align: left;}
    .xuanzhe ul li .menDao1{width:300px;}
    .xuanzhe ul li .menDao1 a{display:block;background:#cecece;color:#303030;float:left;width:36px; text-align:center;height:20px; line-height:20px; cursor:pointer;}
    .xuanzhe ul li .menDao1 .menHover{ background:#20ab4f;color:#fff;}
    .xuanzhe .lift-truck{width:280px;padding:10px;display:block; background:#e1e1e1;border-radius:5px;margin-left:60px;margin-top:-10px;}
    .xuanzhe .lift-truck #taker_phone,.xuanzhe .lift-truck #taker_sex,.xuanzhe .lift-truck #taker_card,.xuanzhe .lift-truck #take_car_num{width:280px; display:block;height:30px; line-height:30px; text-align:left;}
    .xuanzhe .lift-truck span em{float:left; display:block;width:60px; text-align:right;}
    .yt_total{height:50px;line-height: 50px;width: 60%;border-top:1px solid #ccc;margin: 3% 0 0 3%;text-align:left;}
</style>
<include file="Public/common_header"/>
<div class="mian">
    <include file="Public/sidebar" menu="shgl.csfkgz"/>
    <div class="mianR">
        <h3 class="yonghu">
            跟踪查看
        </h3>
        <div class="chezhu-xinxi">
            <div class="xinxi-conter xinxi-conter1" style="background: none;border: none">
                <h4 class="order_no">拍卖单号：<b>{$order.order_no}</b></h4>
            </div>
            <br/>
            <div class="xinxi-conter xinxi-conter1">
                <h4>车商信息</h4>
                <ul>
                    <li class="clearfix">
                        <em>车商联系人</em><em class="name-text">{$dealer.contact_person}</em>
                        <em>联系人电话</em><em class="dian-hua">{$dealer.contact_mobile}</em>
                    </li>
                </ul>
            </div>
            <br/>
            <div class="xinxi-conter xinxi-conter1">
                <h4>车辆信息 <span style="float: right;margin-right: 20px;"><a style="color: #0000FF;text-decoration: underline;" href="/Car/report/car_id/{$car.car_id}" target="_blank">检测报告</a></span></h4>
                <ul>
                    <li class="clearfix">
                        <em>车型</em><em class="name-text">{$car.model}</em>
                        <em>排放标准</em><em class="dian-hua">{$car.emission}</em>
                    </li>

                    <li class="clearfix">
                        <em>初登日期</em><em class="name-text">{$car.first_reg_date}</em>
                        <em>颜色</em><em class="dian-hua"><?php echo C('CAR_COLOR')[$car['car_color']];?></em>
                    </li>
                    <li class="clearfix">
                        <em>表显里程</em><em class="name-text">{$car.pointer_mileage}万公里</em>
                        <em>车况级别</em><em class="name-text">{$car.composite_state}{$car.accident_level}</em>
                    </li>
                    <li class="clearfix">
                        <em>车辆注册地</em><em class="name-text">{$car.reg_city}</em>
                        <em>车牌号</em><em class="name-text">{$car.plate}</em>
                    </li>
                    <li class="clearfix">
                        <em>过户限制</em><em class="name-text">{$transfer_type[$car['transfer_limit']]}</em>
                        <em>渠道来源</em><em class="name-text">
                            <if condition="$car.comefrom neq ''">
                            <?php if(empty($car['comefrom_url'])):?>
                              <?php echo $show_from[$car['comefrom']];?>
                            <?php else: ?>
                              <a href="{$car.comefrom_url}" target="_blank" rel="noreferrer"><?php echo $show_from[$car['comefrom']];?></a>
                            <?php endif;?>
                            <else/>
                              未知
                            </if>
                        </em>
                    </li>
                    <li class="clearfix">
                        <em>车架号</em><em class="name-text">{$car.vin}</em>
                        <em>车辆所在地</em><em class="name-text">{$location_area}</em>
                    </li>
                </ul>
            </div>
            <br/>
            <if condition="($order.dealer_pay_status eq 1 AND $order.status eq 8) OR ($order.dealer_pay_status eq 2)">
            <h4 class="xuanze_tit">收款明细</h4>
            <div class="xuanzhe">
                <ul>
                    <li class="clearfix">
                        <span style="width: 85px;">拍卖最高价：</span>
                        <span style="width: 120px;">{$order_fee.success_price} 元</span>
                    </li>
                    <li class="clearfix">
                        <span style="width: 85px;">交易服务费：</span>
                        <span style="width: 120px;">{$order_fee.commision} 元</span>
                    </li>
                    <li class="clearfix">
                        <span style="width: 85px;">交付服务费：</span>
                        <span style="width: 120px;">{$order_fee.transfer_fee} 元</span>
                    </li>
                    <li class="clearfix">
                        <span style="width: 85px;">代金券：</span>
                        <span style="width: 120px;">{$order_fee.coupon} 元</span>
                    </li>
                    <li class="clearfix">
                        <span style="width: 85px;">抽奖立减：</span>
                        <span style="width: 120px;">{$order_fee.lottery} 元</span>
                    </li>
                    <li class="clearfix">
                        <span style="width: 85px;">活动立减：</span>
                        <span style="width: 120px;">{$order_fee.activity_reduction} 元</span>
                    </li>
                </ul>
                <div class="yt_total">
                    结算金额（拍卖最高价+交易服务费+交付服务费-代金券-抽奖立减-活动立减）：{$order_fee.final_price}  元
                </div>
            </div>
            <br/>
            <div class="xinxi-conter xinxi-conter1">
                <h4>付款信息</h4>
                <ul>
                    <li class="clearfix">
                        <em>车商付款类型</em>
                        <em class="name-text">
                        <if condition="$order.dealer_pay_mode eq 1">
                            全款
                            <elseif condition="$order.dealer_pay_mode eq 2"/>
                            贷款
                        </if>
                        </em>
                    </li>
                    <if condition="$order.dealer_pay_mode eq 1">
                        <li class="clearfix">
                            <em>全款金额</em><em class="name-text" style="font-weight: bolder;color: #ff0000;font-size: 14px;">{$order_fee.final_price} 元</em>
                        </li>
                        <elseif condition="$order.dealer_pay_mode eq 2" />
                        <li class="clearfix">
                            <em>首付金额</em><em class="name-text" style="font-weight: bolder;color: #ff0000;font-size: 14px;">{$collect_detail.first_pay_money} 元</em>
                        </li>
                        <li class="clearfix">
                            <em>贷款金额</em><em class="name-text" style="font-weight: bolder;color: #ff0000;font-size: 14px;">{$collect_detail.loan_money} 元</em>
                            <em>贷款编号</em><em class="name-text" >{$collect_detail.xm_list_code}</em>
                        </li>
                    </if>
                </ul>
            </div>
            <br/>
            </if>
        </div>

        <h3 class="yonghu">系统跟踪日志</h3>
        <div class="yonghuText">
            <ul>
                <volist name="follow_log" id="list" key="k">
                    <li class="{$k%2==0?'xitongBg':''} clearfix">
                        <em class="huShi">{$list.createtime}</em>
                        <em>{$list.real_name}</em><em>继续跟踪</em>
                        <em class="huShi">{$list.remark}</em>
                    </li>
                </volist>
            </ul>
        </div>
        <div class="listBox" style="">
          <div class="yuList">
            <div class="xuanzhe">
              <ul>
                <form id="transForm">
                    <input type="hidden" name="order_id" value="{$order.order_id}"/>
                    <input type="hidden" name="car_id" value="{$car.car_id}"/>
                    <li class="clearfix remarks1">
                        <span>跟踪日志</span>
                        <textarea id="remark" name="remark" ></textarea>
                    </li>
                </form>
              </ul>    
            </div>
            <div class="yongBtn">
              <input id="confirm_pay" type="button" value="确认" class="queding">
              <input name="重置" type="reset" onclick="window.close();" class="quxiao" value="返回"></div>
          </div>
        </div>
        <script>
        $("#confirm_pay").click(function(){
                var remark = $("#remark").val();
                $("#confirm_pay").attr("disabled","disabled");
                $.post("/PayTrack/dealer_pay_follow",{"order_id":<?php echo $order['order_id'];?>,"car_id":<?php echo $car['car_id'];?>,"remark":remark},function(data){
                if(data.code!=200){
                    shibai_alert(data.msg,2000)
                }else{
                    btn_alert("提交成功",1500,function(){
                        window.close();
                        // history.go(0);
                        // location.replace(document.referrer);
                    })
                }
            },"json");
        });
        </script>
    </div>
    <div class="clear"></div>
</div>

   
<include file="Public/foot" />